package 异常对象的常用方法.test01;

public class ExceptionTest01 {
    public static void main(String[] args) {
        NullPointerException e = new NullPointerException("空指针异常");
        String msg = e.getMessage();
        System.out.println(msg);
        e.printStackTrace();
        System.out.println("===============================================");
    }
}
